﻿@{
    Layout = null;
}
@model  UcAsp.Models.AdvPositions

<!DOCTYPE html>

<html>
<head>
    <title>广告为管理</title>
</head>
    <script type="text/javascript">

        tinymce.init({
            selector: "textarea",
            plugins: [
                "advlist autolink lists link image charmap print preview anchor",
                "searchreplace visualblocks code fullscreen",
                "insertdatetime media table contextmenu paste hr upfile"
            ],
            toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent |link image upfile"

        });
        $(document).ready(function () {
            $("#savesiteseting").click(function () {
                $.post("/Admin/SaveAdvPostion", { AdvName: $("input[name='AdvPositionName']").val(), AdvChinaName: $("input[name='AdvChinaName']").val(), AdvHtml: tinyMCE.get("advhtml").getContent() }, function () {
                    location.href = "/Admin/SetAdvPostion";
                })
            })
        })
</script>
<body>
    <div>
        <form action="#" method="post">  
        <p>
        <input name="AdvPositionName" type="hidden"   value="@Model.AdvPositionName" />
           <label>页面名称</label>
        <input id="AdvChinaName" name="AdvChinaName" type="text" class="text-input small-input" value="@Model.AdvChinaName" />
      </p>
        <p>
            <label>内容</label>
<textarea name="advhtml" cols="420"  rows="2">@Model.AdvHtml</textarea>
            </p>
           <p> 
               <input class="button" id="savesiteseting" type="button" value=" 保存 " />
      </p>
            </form>
    </div>
</body>

</html>

